<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
        let str = "崽崽大漂亮";
        console.log(str.startsWith("崽"));
        console.log(str.startsWith("崽崽"));
        console.log(str.startsWith("哈哈"));
        console.log(str.endsWith("漂亮"));

        let str1 = "崽崽";
        let str2 = str1.repeat(2);
        console.log(str2);
        let str3 = str1.repeat(3);
        console.log(str3);
        let str4 = str1.repeat(4);
        console.log(str4);
    </script>
</body>
</html>